package io.renren.modules.area_region.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.area_region.dao.V9AreaRegionDao;
import io.renren.modules.area_region.entity.V9AreaRegionEntity;
import io.renren.modules.area_region.service.V9AreaRegionService;


@Service("v9AreaRegionService")
public class V9AreaRegionServiceImpl extends ServiceImpl<V9AreaRegionDao, V9AreaRegionEntity> implements V9AreaRegionService {

	@Autowired
	private V9AreaRegionDao v9AreaRegionDao;
	
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<V9AreaRegionEntity> page = this.page(
                new Query<V9AreaRegionEntity>().getPage(params),
                new QueryWrapper<V9AreaRegionEntity>()
        );

        return new PageUtils(page);
    }

	@Override
	public List<Map<String, Object>> getShippingArea(String shipAreaIdsStr) {
		return v9AreaRegionDao.getShippingArea(shipAreaIdsStr);
	}

}